import { formatToDateTime } from '@/utils/dateUtil';
import { h } from 'vue';
import { NImage } from 'naive-ui';

export const columns = [
  {
    title: '流水号',
    key: 'no',
    width: 140,
  },
  {
    title: '姓名',
    key: 'name',
    width: 80,
  },
  {
    title: '货物名称',
    key: 'goodsName',
    width: 80,
  },
  {
    title: '毛重',
    key: 'gross',
    width: 60,
  },
  {
    title: '毛重称重时间',
    key: 'grossCreateTime',
    width: 160,
  },
  {
    title: '毛重操作员',
    key: 'grossEmployerName',
    width: 100,
  },
  {
    title: '毛重地磅',
    key: 'grossNumberName',
    width: 80,
  },
  {
    title: '皮重',
    key: 'tare',
    width: 60,
  },
  {
    title: '皮重称重时间',
    key: 'tareCreateTime',
    width: 160,
  },
  {
    title: '皮重操作员',
    key: 'tareEmployerName',
    width: 100,
  },
  {
    title: '皮重地磅',
    key: 'tareNumberName',
    width: 80,
  },
  {
    title: '净重',
    key: 'net',
    width: 60,
  },
  {
    title: '单价(元)',
    key: 'price',
    width: 80,
  },
  {
    title: '总价(元)',
    key: 'total',
    width: 80,
  }, 
  {
    title: '过磅费(元)',
    key: 'weightFee',
    width: 90,
  },
  {
    title: '是否结算',
    key: 'settlement',
    width: 80,
    render: (row) => {
      return row.settlement === 1 ? '是' : '否';
    },
  },
  
];
